<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

	<nav class="bar bar-tab">
			<a class="tab-item open-indicator <?php if($active == 'home'): ?>active<?php endif; ?>"  href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item open-indicator" href="<?php echo U('Apply/apply');?>">
				<span class="icon iconfont icon-category"></span>
				<span class="tab-label">专家预约</span>
			</a>
			<a class="tab-item open-indicator" <?php if($active == 'user_company'): ?>active<?php endif; ?>" href="<?php echo U('UserCompany/index');?>">
				<span class="icon iconfont icon-huiyuan1"></span>
				<span class="tab-label">会员单位</span>
			</a>
			<a class="tab-item open-indicator <?php if($active == 'user'): ?>active<?php endif; ?>" href="<?php echo U('Users/index');?>">
				<span class="icon iconfont icon-account"></span>
				<span class="tab-label">我的</span>
			</a>
		</nav>		
		
		<div class="bar bar-nav">
			<h1 class="title">消息</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		<div class="content">
			<div class="row">
				
				<div class="col-100 tabs">
					<div class="user_txt tab active" id="tabs_1">
						<div class="user_list list-block">
							<ul>
							<li>
						            <a href="<?php echo U('activityMessage');?>" class="item-link item-content">
						              <div class="item-media"><i class="icon icon-message"></i></div>
						              <div class="item-inner">
						                <div class="item-title open-indicator">活动消息 (<?php echo ($count[0]); ?>)</div>
						              </div>
						            </a>
						         </li>
						         <li>
						            <a href="<?php echo U('discussMessage');?>" class="item-link item-content">
						              <div class="item-media"><i class="icon icon-message"></i></div>
						              <div class="item-inner">
						                <div class="item-title">讨论消息 (<?php echo ($count[1]); ?>)</div>
						              </div>
						            </a>
						         </li>
<!--                                                         <li>
						            <a href="<?php echo U('make_discuss_list');?>" class="item-link item-content">
						              <div class="item-media"><i class="icon icon-message"></i></div>
						              <div class="item-inner">
						                <div class="item-title open-indicator">评论消息 (<?php echo ($count[4]); ?>)</div>
						              </div>
						            </a>
						         </li>-->
                                                         <li>
						            <a href="<?php echo U('makeMessage');?>" class="item-link item-content">
						              <div class="item-media"><i class="icon icon-message"></i></div>
						              <div class="item-inner">
						                <div class="item-title open-indicator">预约消息 (<?php echo ($count[3]); ?>)</div>
						              </div>
						            </a>
						         </li>
                                                         <li>
						            <a href="<?php echo U('applyMessage');?>" class="item-link item-content">
						              <div class="item-media"><i class="icon icon-message"></i></div>
						              <div class="item-inner">
						                <div class="item-title open-indicator">专家审核 (<?php echo ($count[2]); ?>)</div>
						              </div>
						            </a>
						         </li>
							</ul>
						</div>
					</div>
				</div>
			</div>
</div>

		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="/Public/Home/activity/js/huodon.js" ></script>
		<script>
			
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true,
				loop:true,    
				grabCursor: true,
				autoplay: 3000
			});
			
			 /* $(document).on('click','.open-preloader', function () {
				 Zepto.showPreloader('加载中...')
				    setTimeout(function () {
				    	 Zepto.hidePreloader();
				    }, 2000); 
			 }); */
			 $(document).on('click','.open-indicator', function () {
				 Zepto.showIndicator();
			     setTimeout(function () {
			    	Zepto.hideIndicator();
			     }, 2000);
			  });
		</script>
		

	</body>

</html>

<script>
//Zepto.toast('操作成功，正在跳转...', 2000, 'success top');
var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {	 	 	 
	 	$(".infinite-scroll-preloader").show();
        page += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/Users/newActivity/is_ajax/1/p/"+page,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$(".infinite-scroll-preloader").hide();
				if($.trim(data) == ''){
					$('#load_more').hide();
				}else{
				    $("#new_ul").append(data);
				}
			}
		}); 
 } 
</script>